package net.lab1024.sa.admin.module.business.orders.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 零售订单 新建表单
 *
 * @Author 谭智得
 * @Date 2025-03-19 09:46:50
 * @Copyright 谭智得
 */

@Data
public class RetailOrdersAddForm {

    @Schema(description = "会员卡号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "会员卡号 不能为空")
    private String vipcardNumber;

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "订单编号 不能为空")
    private String orderNumber;

    @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "订单状态 不能为空")
    private Integer orderStatus;

    @Schema(description = "仓库名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "仓库名称 不能为空")
    private String palceName;

    @Schema(description = "商品信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "商品信息 不能为空")
    private String goodInfo;

    @Schema(description = "操作员", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "操作员 不能为空")
    private String operator;

    @Schema(description = "合计金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "合计金额 不能为空")
    private BigDecimal totalAmount;

    @Schema(description = "收款", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "收款 不能为空")
    private BigDecimal collection;

    @Schema(description = "备注")
    private String remark;

}